package com.woniuxy.company5.service.impl;

import com.woniuxy.company5.dto.UserCustomerDto;
import com.woniuxy.company5.entity.UserCustomer;
import com.woniuxy.company5.mapper.UserCustomerMapper;
import com.woniuxy.company5.service.UserCustomerService;
import com.woniuxy.company5.vo.UserCustomerVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserCustomerServiceImpl implements UserCustomerService {
    @Resource
    private UserCustomerMapper userCustomerMapper;
    @Override
    public List<UserCustomerVo> selectByLike(UserCustomerDto userCustomerDto) {
        return userCustomerMapper.selectByLike(userCustomerDto);
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return userCustomerMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(UserCustomer record) {
        return 0;
    }

    @Override
    public int insertSelective(UserCustomer record) {
        return userCustomerMapper.insertSelective(record);
    }

    @Override
    public UserCustomer selectByPrimaryKey(Long id) {
        return userCustomerMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(UserCustomer record) {
        return userCustomerMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(UserCustomer record) {
        return 0;
    }
}
